package com.hust360.percent.pojo;

import java.io.Serializable;
import java.util.List;

public abstract class User implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -4479428143699656900L;

	public static final String TABLE = "user";
	
	public Long id;
	public static final String ID = "id";
	public String mail;
	public static final String MAIL = "mail";
	public String username;
	public static final String USERNAME = "username";
	public String password;
	public static final String PASSWORD = "password";
	public String img;
	public static final String IMG = "img";
	
	public abstract List<Dsc_usr> getDsc_usrs();
	
	public interface UserDAO {
		
		/**
		 * 注册的时候调用的接口
		 * @param user
		 */
		public void save (User user);
		
		/**
		 * 登录的时候，调用的接口
		 * @param user
		 */
		public User findByExample(User user);
		
	}
}
